<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>work insert</title>
<style>
.worksinsert-main {
	width: 500px;
	height: 450px;
	font-family: 'Nanum Gothic', sans-serif;
}

.worksinsert-main input, .worksinsert-main textarea{
	font-family: 'Nanum Gothic', sans-serif;
}

.worksinsert-top {
	width: 500px;
	height: 360px;
	float: left;
}

.worksinsert-top-title,.worksinsert-top-title2,.worksinsert-top-title3 {
	width: 100px;
	height: 50px;
	float: left;
	margin: 10px;
	color: white;
	text-align: center;
	line-height: 50px;
	vertical-align: middle;
	background-color: #160952;
}

.worksinsert-top-title4 {
	width: 100px;
	height: 150px;
	float: left;
	margin: 10px;
	color: white;
	text-align: center;
	line-height: 150px;
	vertical-align: middle;
	background-color: #160952;
}

.worksinsert-top-item,.worksinsert-top-item2,.worksinsert-top-item3 {
	width: 360px;
	height: 50px;
	float: left;
	margin: 10px;
}

.worksinsert-top-item3{
	text-align: left;
}

.worksinsert-top-item4 {
	width: 360px;
	height: 150px;
	float: left;
	margin: 10px;
}

.worksinsert-top-item input {
	width: 100%;
	height: 88%;
	font-size: 25px;
	border: 1px solid silver;
}

.worksinsert-top-item2 input {
	width: 100%;
	height: 88%;
	font-size: 25px;
	border: 1px solid silver;
}

.worksinsert-top-item4 textarea {
	width: 99%;
	height: 95%;
	font-size: 25px;
	border: 1px solid silver;
}

#workinsert_upload_btn{
	margin-bottom: 10px;

}
.worksinsert-bottom {
	width: 500px;
	height: 60px;
	float: left;
	border-top: 1px solid silver;
}

.worksinsert-bottom input {
	width: 60px;
	height: 40px;
	float: right;
	margin-top: 10px;
	margin-left: 10px;
	margin-right: 7px;
	border-radius: 5px;
}
</style>
</head>
<body>
	<%
		System.out.println("workinsert : " + request.getParameter("part"));
		String part = request.getParameter("part");
	%>
	<form name=writeform method=post
		action="Main.jsp?inc_content=../work/workinsert_result.jsp&part=<%=part%>"
		enctype="multipart/form-data">

		<div class="worksinsert-main">
			<div class="worksinsert-top">
				<div class="worksinsert-top-title">제　목</div>
				<div class="worksinsert-top-item">
					<input type="text" name='subject'>
				</div>

				<div class="worksinsert-top-title2">작 성 자</div>
				<div class="worksinsert-top-item2">
					<input type="text" name='mid'>
				</div>

				<div class="worksinsert-top-title3">첨부파일</div>
				<div class="worksinsert-top-item3">
					File : <input type="file" name='filename' id='workinsert_upload_btn'>
					<p/>
					Img : <input type="file" name='filename2' id='workinsert_upload_btn'>
				</div>

				<div class="worksinsert-top-title4">내　용</div>
				<div class="worksinsert-top-item4">
					<textarea name='content' style="resize: none;"></textarea>
				</div>

				<div class="worksinsert-bottom">
					<input type="button" value="취소"
						onclick="location.href='Main.jsp?inc_content=../work/Works.jsp'">
					<input type="submit" value="저장">
				</div>
			</div>
		</div>

	</form>
</body>
</html>